@import "./base.scss";
@import "./variable.scss";

img {
    width: 100%;
    height: 100%;
}

header {
    .nav {
        width: 100%;
        height: 36px;
        margin-bottom: 16px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #eee;

        .navBox {
            width: 990px;
            margin: 0 auto;
            line-height: 36px;
            font-size: 12px;
            color: #6c6c6c;
            margin-bottom: 20px;
            overflow: hidden;

            .loginBox {
                float: left;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }

            .loginShadow {
                display: none;
                padding: 20px;
                box-sizing: border-box;
                width: 270px;
                height: 150px;
                background-color: #fff;
                box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
                position: fixed;
                top: 35px;
                left: 138px;
                z-index: 100;

                .zhezhao {
                    width: 180px;
                    height: 36px;
                    position: fixed;
                    top: 0;
                    left: 138px;
                    background-color: rgba(0, 0, 0, 0);
                }

                .shadowImag {
                    width: 100%;
                    line-height: 20px;
                    text-align: left;

                    span {
                        float: right;
                        padding: 0px 10px;

                        &:hover {
                            color: $theme;
                            cursor: pointer;
                        }
                    }
                }

                .shadowImg {
                    width: 50px;
                    height: 50px;
                    border-radius: 25px;
                    overflow: hidden;
                }

                .shadowState {
                    text-align: center;
                    line-height: 24px;
                    color: #ff934c;
                    border: 1px solid #ff934c;
                    background-color: rgb(254, 246, 229);
                }
            }

            .navMenu {
                float: right;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }
        }
    }
}

nav {
    @extend type_area;
    line-height: 40px;
    height: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;

    img {
        width: 140px;
        float: left;
        padding-right: 12px;
        border-right: 1px solid #ccc;
    }

    div {
        float: left;
        padding: 0 10px;
        border-right: 1px solid #f8f8f8;
        width: 100px;
        color: #999;
        font-size: 12px;
        height: 36px;
        line-height: 20px;

        .dianming {
            font-weight: 700;
            color: #1a1a1a;
        }

        .pingfen {
            color: $theme;
            font-weight: 700;
        }

        .biaoqian {
            height: 14px;
            font-size: 10px;
            line-height: 14px;
            font-weight: 700;
            background-color: #f4c985;
            border: 1px solid #e7ba77;
            border-radius: 2px;
            color: #856651;
            text-align: center;
        }
    }

    button {
        float: right;
        width: 80px;
        height: 36px;
        background-color: $theme;
        color: #fff;
    }

    input {
        color: #999;
        font-size: 12px;
        width: 375px;
        float: right;
        height: 36px;
        box-sizing: border-box;
        border: 3px solid $theme;
        text-indent: 10px;
    }

    .act {
        margin-left: 10px;
        background-color: #333;
    }
}

section {
    @extend type_area;

    .box {
        width: 1200px;
        height: 500px;
        margin-top: 20px;
    }

    .lef {
        width: 350px;
        height: 440px;
        border: 1px solid #333;
        display: flex;
        flex-direction: column;
        float: left;
        margin-right: 30px;
        position: relative;

        .show {
            width: 100%;
            height: 350px;
            position: relative;
            cursor: none;

            .mask {
                width: 200px;
                height: 200px;
                position: absolute;
                left: 30px;
                top: 50px;
                background-color: yellow;
                opacity: 0.3;

                /* 这个样式是让当前盒子不作为事件目标 */
                /* 任何事件在这个元素身上触发的时候, 直接穿透到达下面的元素 */
                pointer-events: none;
                display: none;
            }
        }

        .list {
            flex: 1;
            width: 100%;
            display: flex;
            align-items: center;
            border-top: 1px solid #333;

            p {
                width: 50px;
                height: 50px;
                margin-left: 30px;
                border: 1px solid #333;
                cursor: pointer;

                &.active {
                    border-color: orange;
                }
            }
        }

        .enlarge {
            width: 450px;
            height: 450px;
            position: absolute;
            top: 0px;
            left: 360px;
            z-index: 10000;
            background-size: 800px 800px;
            background-repeat: no-repeat;
            background-position: 0 0;
            display: none;
        }
    }

    .cen {
        float: left;
        width: 510px;

        .title {
            color: #000;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .is_hot {
            width: 510px;
            position: relative;

        }

        .priceBox {
            position: relative;
            background-color: #eee;
            padding: 10px;
            width: 510px;
            height: 100px;
            box-sizing: border-box;
            margin-bottom: 20px;

            .tm618 {
                width: 110px;
                height: 30px;
                position: absolute;
                top: -40px;
                left: 20px;
            }

            .price {
                font-size: 14px;
                color: rgb(51, 51, 51);
            }

            .current_price {
                font-size: 30px;
                font-weight: 700;
                color: rgb(255, 0, 54);
            }

            .is_sale {
                font-size: 13px;
                color: rgb(181, 98, 27);
            }
        }

        .goods_number {
            font-size: 12px;
            margin-bottom: 20px;
            color: rgb(153, 153, 153);
        }

        .scar {
            color: #fff;
            width: 180px;
            height: 40px;
            background-color: rgb(255, 0, 54);
        }

        .sshop {
            width: 180px;
            height: 40px;
            background-color: #ffeded;
            border: 1px solid #ff0036;
            color: #ff0036;
            box-sizing: border-box;
        }
    }

    .rig {
        float: right;
        width: 300px;

        img {
            width: 140px;
            height: 140px;
            margin-bottom: 10px;
            margin-right: 10px;
            float: left;
        }

        p {
            font-weight: 700;
            margin-bottom: 10px;
        }
    }

    .details {
        width: 1200px;
        height: 1000px;
        margin: 0 auto;
    }
}

// footer {
//     @extend type_area;
// }